package com.cnlive.logpare.util

import org.apache.hadoop.hbase.HBaseConfiguration
import org.apache.hadoop.hbase.client.HBaseAdmin

object HbaseTest {
  def main(args: Array[String]): Unit = {
    val con=HBaseConfiguration.create()
 	 	con.set("hbase.zookeeper.quorum", "node180:2181,node181:2181,node182:2181");
    val hbaseAdmin=new HBaseAdmin(con)
    val tableName="SYSTEM.MUTEX"
    if(hbaseAdmin.tableExists(tableName)){
				hbaseAdmin.disableTable(tableName);
				hbaseAdmin.deleteTable(tableName);
				System.out.println(tableName +"表删除成功 ！");
	  }
  }
}